import {createRouter, createWebHashHistory,RouteRecordRaw} from "vue-router";
import Login from "../pages/login/index.vue";

const routes: RouteRecordRaw[] = [
    {
        path: '/',
        redirect:'/login',
    },
    {
        path: '/login',
        name: 'login',
        component: Login,
    },
    {
        path: '/home',
        name: 'home',
        // component: Home,
        component: () => import('../pages/home/index.vue'),
        meta: {
            title: '首页',
            icon: 'i-ant:home-outlined',
        },
    },
    // {
    //     path: '/tags',
    //     name: 'tags',
    //     // component: Home,
    //     component: () => import('../pages/tagsManger/index.vue'),
    //     meta: {
    //         title: '标签管理',
    //         icon: 'i-ant:home-outlined',
    //     },
    // },
    // {
    //     path: '/user',
    //     name: 'user',
    //     // component: Home,
    //     component: () => import('../pages/userManger/index.vue'),
    //     meta: {
    //         title: '用户管理',
    //         icon: 'i-ant:home-outlined',
    //     },
    // },
    // {
    //     path: '/classifi',
    //     name: 'classifi',
    //     // component: Home,
    //     component: () => import('../pages/classifiManager/index.vue'),
    //     meta: {
    //         title: '分类管理',
    //         icon: 'i-ant:home-outlined',
    //     },
    // },

];
const router = createRouter({
    routes,
    history: createWebHashHistory()        
});
export default router;
